package com.ykq.service.impl;

import com.ykq.dao.UserDao;
import com.ykq.pojo.User;
import com.ykq.service.UserService;
import com.ykq.vo.LoginVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: vue_axios_ssm
 * @description:
 * @author: 闫克起2
 * @create: 2023-05-18 10:07
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    public User selectByNameAndPassword(LoginVo loginVo) {
        User user=userDao.findByNameAndPassword(loginVo);
        return user;
    }
}




















